import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 统计年龄最大的员工
 */
public class MaxAge {
    public static void age(List<Map<String, Object>> a) {
        Integer max = Integer.MIN_VALUE;
        Integer reMax = 0;
        Map<String, Object> maxList = null;
        for (Map<String, Object> map : a) {
            Integer age = Integer.parseInt(map.get("age").toString());
            reMax = max < age ? (max = age) : max;
            maxList = map;
        }
        Set<Map.Entry<String, Object>> entries = maxList.entrySet();
        for (Map.Entry<String, Object> entry : entries) {
            System.out.println(entry);
        }
    }
}
